package ooday01;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/21
 **/
public class Student {
    String name;
    int age;
    String classname;
    String stuID;
    Student(){

    }
    Student(String name,int age){
        this.name=name;
        this.age=age;
    }
    Student (String name,int age,String classname,String stuID){
        this.name=name;
        this.age=age;
        this.classname=classname;
        this.stuID=stuID;
    }
    void study(){
        System.out.println( this.name+"在学习");
    }
    void sayHi(){
        System.out.println("大家好,我叫"+name+"今年"+this.age+"岁了"+"所在班级是"+this.classname+"学号为"+this.stuID );
    }
}
